import java.util.Scanner;

public class If查找两个数的最大值 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入两个数");
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int max = max(a, b);
		System.out.println(max);
	}

	//有返回值的方法在方法的
	//最后一定需要return把值返回出去
	static int max(int a, int b) {
		if (a > b) {
			return a;
		} 
		return b;
	}
}
